package protocol;

public class ID {
static int dimention;
int id;
static public void setDim(int dim){
	dimention = dim;
}
public ID(int id){
	this.id = id;
}

public int getCubId(){
	return id/dimention;
}
public int getCycId(){
	return id%dimention;
}
public String toString(){
	return new String("("+getCubId()+","+getCycId()+")");
}
}
